//    https://www.nowcoder.com/questionTerminal/bb4f1a23dbb84fd7b77be1fbe9eaaf32?answerType=1&f=discussion


#include <iostream>
#include <string>
#include <map>
using namespace std;

int main()
{
    string A, B;
    while (cin >> A >> B)
    {
        map<char, int> AA, BB;
        for (int i = 0; i < A.size(); i++)
            AA[A[i]]++;
        for (int j = 0; j < B.size(); j++)
            BB[B[j]]++;
        for (int k = 'A'; k <= 'Z'; k++)
        {
            if (BB[k] > AA[k])
            {
                cout << "No" << endl;
                break;
            }
            if (k == 'Z')
                cout << "Yes" << endl;
        }
    }
    return 0;
}